#include <HDFAttributes.h>
Public Types | |
STL type definitions | |
| typedef size_t | size_type |
| typedef char * | key_type |
|
typedef std::pair< const key_type, mapped_type > | value_type |
| typedef value_type & | reference |
| typedef const value_type & | const_reference |
Public Member Functions | |
| mapped_type | operator[] (const key_type &) |
| Direct element access. | |
Constructors and assignment operators | |
| HDFAttributes () | |
| Default constructor. | |
| HDFAttributes (const Nodes &path, _attr *head) | |
| Construct container from head element. | |
| HDFAttributes (const HDFAttributes &) | |
| Copy constructor. | |
| ~HDFAttributes () throw () | |
| Destructor. | |
| HDFAttributes & | operator= (const HDFAttributes &) |
| Assignment operator. | |
| void | swap (HDFAttributes &) throw () |
| Swap contents with another object. | |
STL nonmodifying operations | |
| size_type | size () const |
| Number of attributes in container. | |
| bool | empty () const |
| Is the container empty? | |
| size_type | count (const key_type &key) |
| How many elements equal key? | |
| iterator | find (const key_type &key) |
| Find the first element equal to key? | |
| const_iterator | find (const key_type &key) const |
| Find the first element equal to key? | |
STL iterator constructors | |
| iterator | begin () |
| iterator | end () |
| const_iterator | begin () const |
| const_iterator | end () const |
STL element insertion and removal | |
| std::pair< iterator, bool > | insert (const value_type &) |
| Insert an element. | |
| iterator | insert (iterator, const value_type &) |
| Insert an element using a hint. | |
| size_type | erase (const key_type &) throw () |
| Remove elements. | |
| void | erase (iterator) |
| Remove element pointed to by iterator. | |
| void | erase (iterator begin, iterator end) |
| Remove elements in a range. | |
| void | clear () throw () |
| Remove all elements. | |
Static Public Member Functions | |
| static bool & | debug () |
| Access the debug flag. | |
Friends | |
| bool | operator== (const HDFAttributes &, const HDFAttributes &) |
| Equality comparison operator. | |
Classes | |
| class | const_iterator |
| class | iterator |
| class | mapped_type |
This class provides an interface to the attributes associated with an HDF dataset node. This interface attempts to present the attributes as an STL container. However, because of the memory management characteristics of the underlying C API, proxy classes must be defined for the mapped and iterator types. Nevertheless, the attributes may be manipulated using standard STL algorithms.
Definition at line 65 of file HDFAttributes.h.
|
|
How many elements equal key?
Definition at line 104 of file HDFAttributes.cc. |
|
|
Access the debug flag. If the debug flag is true, syslog(3) messages with priority LOG_DEBUG will be logged. Definition at line 281 of file HDFAttributes.cc. |
|
|
Find the first element equal to key?
Definition at line 131 of file HDFAttributes.cc. |
|
|
Find the first element equal to key?
Definition at line 118 of file HDFAttributes.cc. Referenced by insert(), and operator[](). |
1.4.5