Loading...
Searching...
No Matches
Container classes

Classes that hold objects. More...

+ Collaboration diagram for Container classes:

Files

file  iterator.h
 A simple iterator adapter for STL containers.
 
file  typeInfoMap.h
 

Classes

class  TfIterator< T, Reverse >
 A simple iterator adapter for STL containers. More...
 
class  TfTypeInfoMap< VALUE >
 A map whose key is a const std::type_info&, or a string alias. More...
 

Macros

#define TF_FOR_ALL(iter, c)
 Macro for iterating over a container.
 
#define TF_REVERSE_FOR_ALL(iter, c)
 Macro for iterating over a container in reverse.
 

Functions

template<class T >
TfIterator< typename std::remove_reference< T >::type > TfMakeIterator (T &&container)
 Helper functions for creating TfIterator objects.
 

Detailed Description

Classes that hold objects.

Macro Definition Documentation

◆ TF_FOR_ALL

#define TF_FOR_ALL (   iter,
 
)

Macro for iterating over a container.

For any container c of type T, the following loop

for (TfIterator<T> i = c.begin(); i; ++i) {
...
}
A simple iterator adapter for STL containers.
Definition: iterator.h:176

is equivalent to

TF_FOR_ALL(i, c) {
...
}
#define TF_FOR_ALL(iter, c)
Macro for iterating over a container.
Definition: iterator.h:390

Definition at line 390 of file iterator.h.

◆ TF_REVERSE_FOR_ALL

#define TF_REVERSE_FOR_ALL (   iter,
 
)

Macro for iterating over a container in reverse.

Operates like TF_FOR_ALL, but iterates the container in reverse order.

Definition at line 399 of file iterator.h.

Function Documentation

◆ TfMakeIterator()

TfIterator< typename std::remove_reference< T >::type > TfMakeIterator ( T &&  container)

Helper functions for creating TfIterator objects.

Definition at line 359 of file iterator.h.