powerd++
0.4.4
|
This namespace contains c++ wrappers for <cstdio> functionality. More...
Classes | |
struct | contains |
Check whether a set type contains a value. More... | |
struct | contains< set< Set ... >, Value > |
Specialise io::contains to unpack io::set. More... | |
struct | enable_if |
Similar to std::enable_if, but it also has the value of the expression. More... | |
struct | enable_if< false, T > |
Specialise enable_if for a false expression. More... | |
class | file |
Produces file access types around the C file handling facilities. More... | |
class | file< link, Features ... > |
Specialise for FILE object linking file instances. More... | |
class | file< own, Features ... > |
Specialise for FILE object owning file instances. More... | |
class | file_feature |
Implements the base functionality of all file access types. More... | |
class | file_feature< FileT, read, Tail ... > |
Implement read support for file types. More... | |
class | file_feature< FileT, seek, Tail ... > |
Implement seek support for file types. More... | |
class | file_feature< FileT, write, Tail ... > |
Implement write support for file types. More... | |
struct | is_superset_of |
Check whether the left hand set is a superest of the right hand set. More... | |
struct | is_superset_of< LSetT, set< RSet ... > > |
Specialise is_superset_of to unpack the right hand io::set. More... | |
struct | query |
Ask questions about the contents of a string. More... | |
struct | set |
Pack a set of integral values in a type. More... | |
Typedefs | |
template<class SetT , auto Value> | |
using | contains_t = typename contains< SetT, Value >::type |
Check whether a set type contains a value. More... | |
template<class LSetT , class RSetT > | |
using | is_superset_of_t = typename is_superset_of< LSetT, RSetT >::type |
Check whether the left hand set is a superest of the right hand set. More... | |
Enumerations | |
enum | feature { feature::read, feature::write, feature::seek } |
Feature flags for file type composition. More... | |
enum | ownership { ownership::own, ownership::link } |
Ownership relation to the underlying FILE object. More... | |
Variables | |
template<class SetT , auto Value> | |
constexpr const auto | contains_v = contains<SetT, Value>::value |
Check whether a set type contains a value. More... | |
template<class LSetT , class RSetT > | |
constexpr const auto | is_superset_of_v = is_superset_of<LSetT, RSetT>::value |
Check whether the left hand set is a superest of the right hand set. More... | |
file< link, write > | ferr {stderr} |
File access instances for stderr. | |
file< link, write > | fout {stdout} |
File access instances for stdout. | |
file< link, read > | fin {stdin} |
File access instances for stdin. | |
This namespace contains c++ wrappers for <cstdio> functionality.
struct sys::io::contains |
Check whether a set type contains a value.
SetT | A set of integral values packed in io::set |
Value | The value to look up |
class sys::io::file |
Produces file access types around the C file handling facilities.
Ownership | Determine the ownership relationship to the underlying FILE object |
Features | A list of features the file type supports |
struct sys::io::is_superset_of |
Check whether the left hand set is a superest of the right hand set.
LSetT,RSetT | Two io::set instances |
struct sys::io::query |
Ask questions about the contents of a string.
Class Members | ||
---|---|---|
struct contains_ftor | contains | Query the string for characters. |
struct sys::io::set |
Pack a set of integral values in a type.
Set | A set of integral values |
using sys::io::contains_t = typedef typename contains<SetT, Value>::type |
Check whether a set type contains a value.
SetT | A set of integral values packed in io::set |
Value | The value to look up |
using sys::io::is_superset_of_t = typedef typename is_superset_of<LSetT, RSetT>::type |
Check whether the left hand set is a superest of the right hand set.
LSetT,RSetT | Two io::set instances |
|
strong |
Feature flags for file type composition.
Enumerator | |
---|---|
read | The file type supports read operations. |
write | The file type supports write operations. |
seek | The file type supports seek operations. |
|
strong |
Ownership relation to the underlying FILE object.
Enumerator | |
---|---|
own | The file instance owns the FILE object.
|
link | The file instance refers to a FILE object managed somewhere else.
|
|
constexpr |
Check whether a set type contains a value.
SetT | A set of integral values packed in io::set |
Value | The value to look up |
|
constexpr |
Check whether the left hand set is a superest of the right hand set.
LSetT,RSetT | Two io::set instances |