Skip to content

Class mediapipe::internal::Collection

template <typename T, CollectionStorage storage, typename ErrorHandler>

ClassList > mediapipe > internal > Collection

Public Types

Type Name
typedef typename std::conditional< storage==CollectionStorage::kStorePointer, DoubleDerefIterator< const value_type >, const value_type * >::type const_iterator
typedef ptrdiff_t difference_type
typedef typename std::conditional< storage==CollectionStorage::kStorePointer, DoubleDerefIterator< value_type >, value_type * >::type iterator
typedef value_type * pointer
typedef value_type & reference
typedef size_t size_type
typedef typename std::conditional< storage==CollectionStorage::kStorePointer, value_type *, value_type >::type stored_type
typedef T value_type

Public Functions

Type Name
CollectionItemId BeginId () const
CollectionItemId BeginId (const absl::string_view tag) const
Collection () = delete
Collection (const Collection &) = delete
Collection (std::shared_ptr< tool::TagMap > tag_map)
Collection (const tool::TagAndNameInfo & info)
Collection (int num_entries)
Collection (const std::initializer_list< std::string > & tag_names)
std::string DebugString () const
CollectionItemId EndId () const
CollectionItemId EndId (const absl::string_view tag) const
value_type & Get (CollectionItemId id)
const value_type & Get (CollectionItemId id) const
value_type & Get (absl::string_view tag, int index)
const value_type & Get (absl::string_view tag, int index) const
const ErrorHandler & GetErrorHandler () const
CollectionItemId GetId (const absl::string_view tag, int index) const
value_type *& GetPtr (CollectionItemId id)
const value_type * GetPtr (CollectionItemId id) const
std::set< std::string > GetTags () const
bool HasTag (const absl::string_view tag) const
value_type & Index (int index)
const value_type & Index (int index) const
int NumEntries () const
int NumEntries (const absl::string_view tag) const
value_type & Tag (absl::string_view tag)
const value_type & Tag (absl::string_view tag) const
std::pair< std::string, int > TagAndIndexFromId (CollectionItemId id) const
const std::shared_ptr< tool::TagMap > & TagMap () const
bool UsesTags () const
iterator begin ()
const_iterator begin () const
iterator end ()
const_iterator end () const
bool operator!= (const Collection< T > & other) const
Collection & operator= (const Collection &) = delete
bool operator== (const Collection< T > & other) const

Public Types Documentation

typedef const_iterator

using mediapipe::internal::Collection< T, storage, ErrorHandler >::const_iterator =  typename std::conditional<storage == CollectionStorage::kStorePointer, DoubleDerefIterator<const value_type>, const value_type*>::type;

typedef difference_type

using mediapipe::internal::Collection< T, storage, ErrorHandler >::difference_type =  ptrdiff_t;

typedef iterator

using mediapipe::internal::Collection< T, storage, ErrorHandler >::iterator =  typename std::conditional<storage == CollectionStorage::kStorePointer, DoubleDerefIterator<value_type>, value_type*>::type;

typedef pointer

using mediapipe::internal::Collection< T, storage, ErrorHandler >::pointer =  value_type*;

typedef reference

using mediapipe::internal::Collection< T, storage, ErrorHandler >::reference =  value_type&;

typedef size_type

using mediapipe::internal::Collection< T, storage, ErrorHandler >::size_type =  size_t;

typedef stored_type

using mediapipe::internal::Collection< T, storage, ErrorHandler >::stored_type =  typename std::conditional<storage == CollectionStorage::kStorePointer, value_type*, value_type>::type;

typedef value_type

using mediapipe::internal::Collection< T, storage, ErrorHandler >::value_type =  T;

Public Functions Documentation

function BeginId [1/2]

inline CollectionItemId mediapipe::internal::Collection::BeginId () const

function BeginId [2/2]

inline CollectionItemId mediapipe::internal::Collection::BeginId (
    const absl::string_view tag
) const

function Collection [1/6]

mediapipe::internal::Collection::Collection () = delete

function Collection [2/6]

mediapipe::internal::Collection::Collection (
    const Collection &
) = delete

function Collection [3/6]

explicit mediapipe::internal::Collection::Collection (
    std::shared_ptr< tool::TagMap > tag_map
) 

function Collection [4/6]

explicit mediapipe::internal::Collection::Collection (
    const tool::TagAndNameInfo & info
) 

function Collection [5/6]

explicit mediapipe::internal::Collection::Collection (
    int num_entries
) 

function Collection [6/6]

mediapipe::internal::Collection::Collection (
    const std::initializer_list< std::string > & tag_names
) 

function DebugString

std::string mediapipe::internal::Collection::DebugString () const

function EndId [1/2]

inline CollectionItemId mediapipe::internal::Collection::EndId () const

function EndId [2/2]

inline CollectionItemId mediapipe::internal::Collection::EndId (
    const absl::string_view tag
) const

function Get [1/4]

value_type & mediapipe::internal::Collection::Get (
    CollectionItemId id
) 

function Get [2/4]

const value_type & mediapipe::internal::Collection::Get (
    CollectionItemId id
) const

function Get [3/4]

value_type & mediapipe::internal::Collection::Get (
    absl::string_view tag,
    int index
) 

function Get [4/4]

const value_type & mediapipe::internal::Collection::Get (
    absl::string_view tag,
    int index
) const

function GetErrorHandler

inline const ErrorHandler & mediapipe::internal::Collection::GetErrorHandler () const

function GetId

inline CollectionItemId mediapipe::internal::Collection::GetId (
    const absl::string_view tag,
    int index
) const

function GetPtr [1/2]

value_type *& mediapipe::internal::Collection::GetPtr (
    CollectionItemId id
) 

function GetPtr [2/2]

const value_type * mediapipe::internal::Collection::GetPtr (
    CollectionItemId id
) const

function GetTags

inline std::set< std::string > mediapipe::internal::Collection::GetTags () const

function HasTag

inline bool mediapipe::internal::Collection::HasTag (
    const absl::string_view tag
) const

function Index [1/2]

value_type & mediapipe::internal::Collection::Index (
    int index
) 

function Index [2/2]

const value_type & mediapipe::internal::Collection::Index (
    int index
) const

function NumEntries [1/2]

inline int mediapipe::internal::Collection::NumEntries () const

function NumEntries [2/2]

inline int mediapipe::internal::Collection::NumEntries (
    const absl::string_view tag
) const

function Tag [1/2]

value_type & mediapipe::internal::Collection::Tag (
    absl::string_view tag
) 

function Tag [2/2]

const value_type & mediapipe::internal::Collection::Tag (
    absl::string_view tag
) const

function TagAndIndexFromId

inline std::pair< std::string, int > mediapipe::internal::Collection::TagAndIndexFromId (
    CollectionItemId id
) const

function TagMap

const std::shared_ptr< tool::TagMap > & mediapipe::internal::Collection::TagMap () const

function UsesTags

bool mediapipe::internal::Collection::UsesTags () const

function begin [1/2]

iterator mediapipe::internal::Collection::begin () 

function begin [2/2]

const_iterator mediapipe::internal::Collection::begin () const

function end [1/2]

iterator mediapipe::internal::Collection::end () 

function end [2/2]

const_iterator mediapipe::internal::Collection::end () const

function operator!=

inline bool mediapipe::internal::Collection::operator!= (
    const Collection< T > & other
) const

function operator=

Collection & mediapipe::internal::Collection::operator= (
    const Collection &
) = delete

function operator==

inline bool mediapipe::internal::Collection::operator== (
    const Collection< T > & other
) const


The documentation for this class was generated from the following file /home/friedel/devel/ILLIXR-plugins/hand_tracking/mediapipe/framework/collection.h