Parallel Make  1.0
My implementation of make utility, which can run in multiple threads according to user request.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends
makefile_records Class Reference

Class for storing all makefile_record in Makefile. More...

#include <makefile_records.hpp>

Public Types

using size_type = decltype(m_records)::size_type
 
using difference_type = decltype(m_records)::difference_type
 
using value_type = decltype(m_records)::value_type
 
using reference = decltype(m_records)::reference
 
using pointer = decltype(m_records)::pointer
 
using const_reference = decltype(m_records)::const_reference
 
using const_pointer = decltype(m_records)::const_pointer
 
using iterator = decltype(m_records)::iterator
 
using const_iterator = decltype(m_records)::const_iterator
 

Public Member Functions

std::size_t size ()
 
std::vector< makefile_record >
::iterator 
begin ()
 
std::vector< makefile_record >
::const_iterator 
begin () const
 
std::vector< makefile_record >
::iterator 
end ()
 
std::vector< makefile_record >
::const_iterator 
end () const
 
reference front ()
 
const_reference front () const
 
reference back ()
 
const_reference back () const
 
void push_back (const_reference val)
 
void push_back (value_type &&val)
 
template<typename... Ts>
void emplace_back (Ts &&...vals)
 
makefile_records::iterator find_record (const file &target)
 

Detailed Description

Class for storing all makefile_record in Makefile.

!

Member Typedef Documentation

using makefile_records::const_iterator = decltype(m_records)::const_iterator
using makefile_records::const_pointer = decltype(m_records)::const_pointer
using makefile_records::const_reference = decltype(m_records)::const_reference
using makefile_records::difference_type = decltype(m_records)::difference_type
using makefile_records::iterator = decltype(m_records)::iterator
using makefile_records::pointer = decltype(m_records)::pointer
using makefile_records::reference = decltype(m_records)::reference
using makefile_records::size_type = decltype(m_records)::size_type
using makefile_records::value_type = decltype(m_records)::value_type

Member Function Documentation

reference makefile_records::back ( )
inline

Returns reference to last record in container. If the container is empty, the function has undefined behaviour.

Returns
reference to last element in container.
const_reference makefile_records::back ( ) const
inline

Returns reference to last record in container. If the container is empty, the function has undefined behaviour.

Returns
const_reference to last element in container.
std::vector<makefile_record>::iterator makefile_records::begin ( )
inline

Returns the iterator to begin of the container.

Returns
iterator to the begin.
std::vector<makefile_record>::const_iterator makefile_records::begin ( ) const
inline

Returns the iterator to begin of the container.

Returns
const_iterator to the begin.
template<typename... Ts>
void makefile_records::emplace_back ( Ts &&...  vals)
inline

Emplaces an element by calling constructor of makefile_record in place.

Template Parameters
TsArguments of makefile_record constructor
Parameters
valsArguments to pass to makefile_record's constructor.
std::vector<makefile_record>::iterator makefile_records::end ( )
inline

Returns the iterator past the end of the container.

Returns
iterator past the end.
std::vector<makefile_record>::const_iterator makefile_records::end ( ) const
inline

Returns the iterator past the end of the container.

Returns
const_iterator past the end.
makefile_records::iterator makefile_records::find_record ( const file &  target)
inline

Finds a record by target name.

Parameters
targetfile representing target to be found.
Returns
iterator to found target, or end() if no such target exists.
reference makefile_records::front ( )
inline

Returns reference to first record in container. If the container is empty, the function has undefined behaviour.

Returns
reference to first element in container.
const_reference makefile_records::front ( ) const
inline

Returns reference to first record in container. If the container is empty, the function has undefined behaviour.

Returns
const_reference to first element in container.
void makefile_records::push_back ( const_reference  val)
inline

Inserts an element of value val by copy constructing it at the end.

Parameters
valelement to be inserted into container.
void makefile_records::push_back ( value_type &&  val)
inline

Inserts an element of value val by move constructing it at the end.

Parameters
valelement to be inserted into container.
std::size_t makefile_records::size ( )
inline
Returns
Number of records in container.

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