46 explicit Example(
const std::string& name);
54 bool setName(
const std::string& name);
83 static int add(
int x,
int y);
90 std::vector<int> values_;
Example()
Default constructor.
Definition example.cpp:9
static int add(int x, int y)
Static utility function.
Definition example.cpp:32
std::string getName() const
Get the name.
Definition example.cpp:19
Color color
Public member variable.
Definition example.hpp:86
bool setName(const std::string &name)
Set the name.
Definition example.cpp:13
void addValue(int value)
Add a value to the list.
Definition example.cpp:23
std::vector< int > getValues() const
Get all values.
Definition example.cpp:28
Color
A simple enumeration for demonstration.
Definition example.hpp:24
@ Blue
Blue color.
Definition example.hpp:27
@ Green
Green color.
Definition example.hpp:26
@ Red
Red color.
Definition example.hpp:25