STLSoft - ... Robust, Lightweight, Cross-platform, Template Software ... ATLSTL - Template Software for the Active Template Library COMSTL - The Standard Template Library meets the Component Object Model .netSTL - Standard Template Library meets the Microsoft.NET Common Language Runtime InetSTL - The Standard Template Library meets WinInet MFCSTL - Template Software for the Microsoft Foundation Classes UNIXSTL - Template Software for the UNIX Operating System WinSTL - where the Standard Template Library meets the Win32 API

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

basic_path Class Template Reference
[File-System Library (UNIXSTL)]

Represents a path. More...

#include <unixstl_path.h>

List of all members.

Construction

 basic_path (char_type const *path)
 Constructs a path from path.

template<typename S>  basic_path (S const &s)
 Constructs a path from path.

 basic_path (char_type const *path, size_type cch)
 Constructs a path from cch characters in path.


Public Types

Types
typedef C char_type
 The char type.

typedef T traits_type
 The traits type.

typedef A allocator_type
 The allocator type.

typedef basic_path< C, T, A > class_type
 The current parameterisation of the type.

typedef us_size_t size_type
 The size type.


Public Methods

Operations
Attributes
size_type length () const
 Returns the length of the converted path.

char_type const * c_str () const
 Conversion to a non-mutable (const) pointer to the path.

Comparison


Detailed Description

template<typename C, typename T = filesystem_traits<C>, typename A = malloc_allocator<C>>
class unixstl::basic_path< C, T, A >

Represents a path.

Parameters:
C  The character type
T  The traits type. On translators that support default template arguments, this defaults to filesystem_traits<C>
A  The allocator type. On translators that support default template arguments, this defaults to malloc_allocator<C>
Note:
This class derives from the Synesis Software class Path, but has been influenced by other, later, ideas. The idea of using the / operator for path concatenation was sparked by the Boost implementation (although the details were not investigated prior to this implementation, so the two may have significant semantic differences). This has been added without requiring any major fundamental changes to the original push/pop-based interface


Member Typedef Documentation

typedef A allocator_type
 

The allocator type.

typedef C char_type
 

The char type.

typedef basic_path<C, T, A> class_type
 

The current parameterisation of the type.

typedef us_size_t size_type
 

The size type.

typedef T traits_type
 

The traits type.


Constructor & Destructor Documentation

basic_path char_type const *    path [explicit]
 

Constructs a path from path.

basic_path S const &    s [inline, explicit]
 

Constructs a path from path.

basic_path char_type const *    path,
size_type    cch
 

Constructs a path from cch characters in path.


Member Function Documentation

char_type const* c_str  
 

Conversion to a non-mutable (const) pointer to the path.

size_type length  
 

Returns the length of the converted path.


The documentation for this class was generated from the following file:

STLSoft Libraries documentation © Synesis Software Pty Ltd, 2001-2004