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. | |
const std::vector< K > | Keys () const |
Retrieve all keys. | |
V & | operator[] (const K &_key) |
Fetch mutable reference to column. | |
const V & | operator[] (const K &_key) const |
Fetch immutable reference to column. | |
Detailed Description
template<typename K, typename V>
class gz::common::DataFrame< K, 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()
template<typename K , typename V >
|
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()
template<typename K , typename V >
|
inline |
◆ operator[]() [1/2]
template<typename K , typename V >
|
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]
template<typename K , typename V >
|
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: