Started making the library sort-of-buildable
This commit is contained in:
parent
221f0c8ef8
commit
ccd7cc30ef
55 changed files with 461 additions and 304 deletions
|
@ -2,10 +2,10 @@
|
|||
/* ALLOCATORS - INLINE CODE ***************************************************/
|
||||
/******************************************************************************/
|
||||
|
||||
#ifndef _H_LW_LIB_INLINE_ALLOC
|
||||
#define _H_LW_LIB_INLINE_ALLOC
|
||||
#include <lw/lib/Alloc.hh>
|
||||
namespace lw {
|
||||
#ifndef _H_EBCL_INLINE_ALLOC
|
||||
#define _H_EBCL_INLINE_ALLOC
|
||||
#include <ebcl/Alloc.hh>
|
||||
namespace ebcl {
|
||||
|
||||
|
||||
/*= T_PoolHelper::T_List =====================================================*/
|
||||
|
@ -373,4 +373,4 @@ void T_ThreadedPoolAllocator< OS , OA , P , M >::addToStack(
|
|||
|
||||
|
||||
}
|
||||
#endif //_H_LW_LIB_INLINE_ALLOC
|
||||
#endif //_H_EBCL_INLINE_ALLOC
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
/* ARRAYS - INLINE CODE *******************************************************/
|
||||
/******************************************************************************/
|
||||
|
||||
#ifndef _H_LW_LIB_INLINE_ARRAYS
|
||||
#define _H_LW_LIB_INLINE_ARRAYS
|
||||
#include <lw/lib/Arrays.hh>
|
||||
namespace lw {
|
||||
#ifndef _H_EBCL_INLINE_ARRAYS
|
||||
#define _H_EBCL_INLINE_ARRAYS
|
||||
#include <ebcl/Arrays.hh>
|
||||
namespace ebcl {
|
||||
|
||||
|
||||
/*= T_Array ==================================================================*/
|
||||
|
@ -1591,4 +1591,4 @@ inline T_Array< T > const& T_AutoArray< T , S , G >::dynamic_( ) const noexcept
|
|||
|
||||
|
||||
} // namespace
|
||||
#endif // _H_LW_LIB_INLINE_ARRAYS
|
||||
#endif // _H_EBCL_INLINE_ARRAYS
|
||||
|
|
|
@ -2,9 +2,10 @@
|
|||
/* BINARY READER/WRITER FOR STREAMS - INLINE CODE *****************************/
|
||||
/******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
#include <lw/lib/BinaryStreams.hh>
|
||||
namespace lw {
|
||||
#ifndef _H_EBCL_INLINE_BINARYSTREAMS
|
||||
#define _H_EBCL_INLINE_BINARYSTREAMS
|
||||
#include <ebcl/BinaryStreams.hh>
|
||||
namespace ebcl {
|
||||
|
||||
|
||||
/*= T_BinaryReader ===========================================================*/
|
||||
|
@ -143,3 +144,4 @@ inline void T_BinaryWriter::T_Writer_< T , false >::write( T_BinaryWriter const&
|
|||
|
||||
|
||||
} // namespace
|
||||
#endif // _H_EBCL_INLINE_BINARYSTREAMS
|
||||
|
|
|
@ -2,9 +2,10 @@
|
|||
/* BUFFERS - INLINE CODE ******************************************************/
|
||||
/******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
#include <lw/lib/Buffers.hh>
|
||||
namespace lw {
|
||||
#ifndef _H_EBCL_INLINE_BUFFERS
|
||||
#define _H_EBCL_INLINE_BUFFERS
|
||||
#include <ebcl/Buffers.hh>
|
||||
namespace ebcl {
|
||||
|
||||
|
||||
/*= T_BufferBase =============================================================*/
|
||||
|
@ -261,3 +262,4 @@ inline T_Buffer< T >& T_Buffer< T >::copyAll( T const* data )
|
|||
|
||||
|
||||
} // namespace
|
||||
#endif // _H_EBCL_INLINE_BUFFERS
|
||||
|
|
|
@ -2,9 +2,10 @@
|
|||
/* HASH INDEX - INLINE CODE ***************************************************/
|
||||
/******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
#include <lw/lib/HashIndex.hh>
|
||||
namespace lw {
|
||||
#ifndef _H_EBCL_INLINE_HASHINDEX
|
||||
#define _H_EBCL_INLINE_HHASHINDEX
|
||||
#include <ebcl/HashIndex.hh>
|
||||
namespace ebcl {
|
||||
|
||||
|
||||
/*= T_HashIndex ==============================================================*/
|
||||
|
@ -27,3 +28,4 @@ inline uint32_t T_HashIndex::next( uint32_t index ) const
|
|||
|
||||
|
||||
}
|
||||
#endif //_H_EBCL_INLINE_HHASHINDEX
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
/* HASH TABLES - INLINE CODE **************************************************/
|
||||
/******************************************************************************/
|
||||
|
||||
#ifndef _H_LW_LIB_INLINE_HASHTABLES
|
||||
#define _H_LW_LIB_INLINE_HASHTABLES
|
||||
#include <lw/lib/HashTables.hh>
|
||||
namespace lw {
|
||||
#ifndef _H_EBCL_INLINE_HASHTABLES
|
||||
#define _H_EBCL_INLINE_HASHTABLES
|
||||
#include <ebcl/HashTables.hh>
|
||||
namespace ebcl {
|
||||
|
||||
|
||||
/*= T_DefaultKeyMatch ========================================================*/
|
||||
|
@ -418,4 +418,4 @@ inline uint32_t T_ObjectTable< K , V >::find( K const& k , uint32_t hash ) const
|
|||
|
||||
|
||||
} // namespace
|
||||
#endif // _H_LW_LIB_INLINE_HASHTABLES
|
||||
#endif // _H_EBCL_INLINE_HASHTABLES
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
/* POINTERS - INLINE CODE *****************************************************/
|
||||
/******************************************************************************/
|
||||
|
||||
#ifndef _H_LW_LIB_INLINE_POINTERS
|
||||
#define _H_LW_LIB_INLINE_POINTERS
|
||||
#include <lw/lib/Pointers.hh>
|
||||
namespace lw {
|
||||
#ifndef _H_EBCL_INLINE_POINTERS
|
||||
#define _H_EBCL_INLINE_POINTERS
|
||||
#include <ebcl/Pointers.hh>
|
||||
namespace ebcl {
|
||||
|
||||
|
||||
/*= T_OwnPtr =================================================================*/
|
||||
|
@ -851,4 +851,4 @@ template<
|
|||
|
||||
|
||||
} // namespace
|
||||
#endif // _H_LW_LIB_INLINE_POINTERS
|
||||
#endif // _H_EBCL_INLINE_POINTERS
|
||||
|
|
|
@ -2,9 +2,10 @@
|
|||
/* STREAMS - INLINE CODE ******************************************************/
|
||||
/******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
#include <lw/lib/Streams.hh>
|
||||
namespace lw {
|
||||
#ifndef _H_EBCL_INLINE_STREAMS
|
||||
#define _H_EBCL_INLINE_STREAMS
|
||||
#include <ebcl/Streams.hh>
|
||||
namespace ebcl {
|
||||
|
||||
|
||||
/*= X_StreamError ============================================================*/
|
||||
|
@ -96,3 +97,4 @@ inline A_OutputStream::A_OutputStream( size_t position , size_t size ) noexcept
|
|||
|
||||
|
||||
} // namespace
|
||||
#endif // _H_EBCL_INLINE_STREAMS
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
/* STRINGS AND RELATED UTILITIES - INLINE CODE ********************************/
|
||||
/******************************************************************************/
|
||||
|
||||
#ifndef _H_LW_LIB_INLINE_STRINGS
|
||||
#define _H_LW_LIB_INLINE_STRINGS
|
||||
#include <lw/lib/Strings.hh>
|
||||
namespace lw {
|
||||
#ifndef _H_EBCL_INLINE_STRINGS
|
||||
#define _H_EBCL_INLINE_STRINGS
|
||||
#include <ebcl/Strings.hh>
|
||||
namespace ebcl {
|
||||
|
||||
|
||||
/*= T_Character ==============================================================*/
|
||||
|
@ -588,4 +588,4 @@ inline T_StringBuilder& operator<< ( T_StringBuilder& sb , double value )
|
|||
|
||||
|
||||
} // namespace
|
||||
#endif // _H_LW_LIB_INLINE_STRINGS
|
||||
#endif // _H_EBCL_INLINE_STRINGS
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
/* THREADING - INLINE CODE ****************************************************/
|
||||
/******************************************************************************/
|
||||
|
||||
#ifndef _H_LW_LIB_INLINE_THREADING
|
||||
#define _H_LW_LIB_INLINE_THREADING
|
||||
#include <lw/lib/Threading.hh>
|
||||
namespace lw {
|
||||
#ifndef _H_EBCL_INLINE_THREADING
|
||||
#define _H_EBCL_INLINE_THREADING
|
||||
#include <ebcl/Threading.hh>
|
||||
namespace ebcl {
|
||||
|
||||
|
||||
/*= T_ReadWriteMutex =========================================================*/
|
||||
|
@ -349,4 +349,4 @@ inline void T_RingBuffer< T >::expand( )
|
|||
|
||||
|
||||
}
|
||||
#endif // _H_LW_LIB_INLINE_THREADING
|
||||
#endif // _H_EBCL_INLINE_THREADING
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
/* CONTAINER TYPES - INLINE CODE **********************************************/
|
||||
/******************************************************************************/
|
||||
|
||||
#ifndef _H_LW_LIB_INLINE_TYPES
|
||||
#define _H_LW_LIB_INLINE_TYPES
|
||||
#include <lw/lib/Types.hh>
|
||||
namespace lw {
|
||||
#ifndef _H_EBCL_INLINE_TYPES
|
||||
#define _H_EBCL_INLINE_TYPES
|
||||
#include <ebcl/Types.hh>
|
||||
namespace ebcl {
|
||||
|
||||
|
||||
/*= VARIANT TYPE =============================================================*/
|
||||
|
@ -126,7 +126,7 @@ inline void T_VariantHelper::T_InPlaceHandler< Type >::action(
|
|||
|
||||
case E_HandlerOp::MKHDL:
|
||||
{
|
||||
const E_HandlerMode mode( *( (E_HandlerMode*) &source ) );
|
||||
const E_HandlerMode mode( *new ((char*)&source) E_HandlerMode );
|
||||
if ( mode == E_HandlerMode::IN_PLACE ) {
|
||||
*( (F_Handler*) dest) = &T_InPlaceHandler< Type >::action;
|
||||
} else {
|
||||
|
@ -230,7 +230,7 @@ inline void T_VariantHelper::T_HeapHandler< Type >::action(
|
|||
|
||||
case E_HandlerOp::MKHDL:
|
||||
{
|
||||
const E_HandlerMode mode( *( (E_HandlerMode*) &source ) );
|
||||
const E_HandlerMode mode( *new ((char*)&source) E_HandlerMode );
|
||||
if ( mode == E_HandlerMode::IN_PLACE ) {
|
||||
*( (F_Handler*) dest) = &T_InPlaceHandler< Type >::action;
|
||||
} else {
|
||||
|
@ -996,5 +996,5 @@ inline void T_Union< TL... >::moveImpl( T_Storage_* from , T_Storage_* to )
|
|||
|
||||
|
||||
} // namespace
|
||||
#endif // _H_LW_LIB_INLINE_TYPES
|
||||
#endif // _H_EBCL_INLINE_TYPES
|
||||
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
/* VARIOUS UTILITIES - INLINE CODE ********************************************/
|
||||
/******************************************************************************/
|
||||
|
||||
#ifndef _H_LW_LIB_INLINE_UTILITIES
|
||||
#define _H_LW_LIB_INLINE_UTILITIES
|
||||
#include <lw/lib/Utilities.hh>
|
||||
namespace lw {
|
||||
#ifndef _H_EBCL_INLINE_UTILITIES
|
||||
#define _H_EBCL_INLINE_UTILITIES
|
||||
#include <ebcl/Utilities.hh>
|
||||
namespace ebcl {
|
||||
|
||||
|
||||
template< typename T >
|
||||
|
@ -300,4 +300,4 @@ inline void A_PrivateImplementation::callPrivateDestructor( ) noexcept
|
|||
|
||||
|
||||
}
|
||||
#endif // _H_LW_LIB_INLINE_UTILITIES
|
||||
#endif // _H_EBCL_INLINE_UTILITIES
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue