Variables class upgrades:
* reset_values function to set all Values to their defaul-construct state * read-only access to all variables of some type via get_all<T> * Variables cloning * convenience functions: get_or_throw, get_value Value subtypes now contain a value_type typedef and require a const value_type& get_value() const member function.
Showing
- libwccl/values/bool.h 3 additions, 1 deletionlibwccl/values/bool.h
- libwccl/values/position.h 3 additions, 1 deletionlibwccl/values/position.h
- libwccl/values/strset.h 2 additions, 0 deletionslibwccl/values/strset.h
- libwccl/values/tset.h 2 additions, 0 deletionslibwccl/values/tset.h
- libwccl/variables.cpp 67 additions, 11 deletionslibwccl/variables.cpp
- libwccl/variables.h 81 additions, 8 deletionslibwccl/variables.h
- tests/varaccess.cpp 10 additions, 10 deletionstests/varaccess.cpp
- tests/variables.cpp 66 additions, 0 deletionstests/variables.cpp
Please register or sign in to comment