Boost.AFIO    Boost C++ Libraries
Classes | Public Member Functions | Public Attributes | Protected Member Functions
boost::afio::path_req Struct Reference

A convenience bundle of path and flags, with optional precondition. Paths may be a path fragment (relative to the precondition) or absolute, in which case if necessary they are made canonical and absolute in the constructor according to the current working directory. More...

Inheritance diagram for boost::afio::path_req:
boost::afio::path_req::absolute boost::afio::path_req::relative

List of all members.

Classes

struct  absolute
 Convenience tag type constructing an absolute path path_req. More...
struct  relative
 Convenience tag type constructing a relative path path_req. More...

Public Member Functions

 path_req ()
 Default constructor.
 path_req (const path_req &o)
 Copy constructor.
 path_req (path_req &&o) noexcept
 Move constructor.
 path_req (absolute &&o)
 Move constructor.
 path_req (relative &&o)
 Move constructor.
template<class T , typename = typename std::enable_if<!std::is_constructible<path_req, T>::value && !std::is_constructible<future<>, T>::value>::type>
 path_req (T &&_path, file_flags _flags=file_flags::none)
 Constructs an instance.
template<class T , typename = typename std::enable_if<!std::is_convertible<boost::afio::path, T>::value>::type>
 path_req (bool _is_relative, future<> _precondition, T &&_path, file_flags _flags=file_flags::none)
 Constructs an instance.
 path_req (bool _is_relative, future<> _precondition, boost::afio::path _path, file_flags _flags=file_flags::none)
 path_req (future<> _precondition, file_flags _flags=file_flags::none)
 Constructs an instance.
bool validate () const
 Validates contents.

Public Attributes

bool is_relative
 Whether the precondition is also where this path begins.
boost::afio::path path
 The filing system path to be used for this operation.
file_flags flags
 The flags to be used for this operation (note they can be overriden by flags passed during dispatcher construction).
future precondition

Protected Member Functions

void _validate () const

Detailed Description

A convenience bundle of path and flags, with optional precondition. Paths may be a path fragment (relative to the precondition) or absolute, in which case if necessary they are made canonical and absolute in the constructor according to the current working directory.

Definition at line 2737 of file afio.hpp.


Constructor & Destructor Documentation

Default constructor.

Definition at line 2748 of file afio.hpp.

Copy constructor.

Move constructor.

Definition at line 2752 of file afio.hpp.

Move constructor.

Definition at line 2827 of file afio.hpp.

Move constructor.

Definition at line 2828 of file afio.hpp.

template<class T , typename = typename std::enable_if<!std::is_constructible<path_req, T>::value && !std::is_constructible<future<>, T>::value>::type>
boost::afio::path_req::path_req ( T &&  _path,
file_flags  _flags = file_flags::none 
)

Constructs an instance.

Template Parameters:
class TThe type of path to be used.
Parameters:
_pathThe filing system path to be used.
_flagsThe flags to be used.

Definition at line 2764 of file afio.hpp.

template<class T , typename = typename std::enable_if<!std::is_convertible<boost::afio::path, T>::value>::type>
boost::afio::path_req::path_req ( bool  _is_relative,
future<>  _precondition,
T &&  _path,
file_flags  _flags = file_flags::none 
)

Constructs an instance.

Template Parameters:
class TThe type of path to be used.
Parameters:
_is_relativeWhether the precondition is where the path begins
_preconditionThe precondition for this operation.
_pathThe filing system path to be used.
_flagsThe flags to be used.

Definition at line 2773 of file afio.hpp.

boost::afio::path_req::path_req ( bool  _is_relative,
future<>  _precondition,
boost::afio::path  _path,
file_flags  _flags = file_flags::none 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 2775 of file afio.hpp.

boost::afio::path_req::path_req ( future<>  _precondition,
file_flags  _flags = file_flags::none 
)

Constructs an instance.

Parameters:
_preconditionThe precondition for this operation (used as the path).
_flagsThe flags to be used.

Definition at line 2781 of file afio.hpp.


Member Function Documentation

Validates contents.

Definition at line 2783 of file afio.hpp.


Member Data Documentation

Whether the precondition is also where this path begins.

Definition at line 2739 of file afio.hpp.

The filing system path to be used for this operation.

Definition at line 2740 of file afio.hpp.

The flags to be used for this operation (note they can be overriden by flags passed during dispatcher construction).

Definition at line 2741 of file afio.hpp.

An optional precondition for this operation

Definition at line 2742 of file afio.hpp.


January, 2014

Copyright © 2013-2014 Niall Douglas, Cork, Ireland
Copyright © 2013 Paul Kirth, California
Documentation is generated by Doxygen