DataFrame< K, V > Class Template Reference
An abstract data frame. More...
#include <DataFrame.hh>
Public Member Functions | |
bool | Has (const K &_key) const |
Check if column is present. More... | |
const std::vector< K > | Keys () const |
Retrieve all keys. More... | |
V & | operator[] (const K &_key) |
Fetch mutable reference to column. More... | |
const V & | operator[] (const K &_key) const |
Fetch immutable reference to column. More... | |
Detailed Description
template<typename K, typename V>
class gz::common::DataFrame< K, V >
An abstract data frame.
- Template Parameters
-
K Column key type V Column value type
Member Function Documentation
◆ Has()
|
inline |
Check if column is present.
- Parameters
-
[in] _key Key to column to look up.
- Returns
- whether the given column is present in the data frame.
References unordered_map< K, T >::count().
◆ Keys()
|
inline |
◆ operator[]() [1/2]
|
inline |
Fetch mutable reference to column.
- Parameters
-
[in] _key Key to column to look up.
- Returns
- Mutable reference to column in the data frame.
◆ operator[]() [2/2]
|
inline |
Fetch immutable reference to column.
- Parameters
-
[in] _key Key to column to look up.
- Returns
- Immutable reference to column in the data frame.
References unordered_map< K, T >::at().
The documentation for this class was generated from the following file: