library of assembled shared sources |
http://lass.cocamware.com |
#include "../util_common.h"
#include "../util_common.h"
Go to the source code of this file.
Data Structures | |
struct | lass::util::impl::TruePredicate |
Predicate for enforcers using operator!, used by LASS_ENFORCE and LASS_ENFORCE_POINTER. More... | |
struct | lass::util::impl::EqualPredicate |
value must be equal to closure More... | |
struct | lass::util::impl::UnequalPredicate |
value must be different than closure More... | |
struct | lass::util::impl::GreaterEqualPredicate |
value must be greater than or equal to closure More... | |
struct | lass::util::impl::IndexPredicate |
value must be in range [0, closure) More... | |
struct | lass::util::impl::StreamPredicate |
Predicate to enforce a stream to be a in good state. More... | |
struct | lass::util::impl::DefaultRaiser |
Throw a runtime error. More... | |
struct | lass::util::impl::ZeroRaiser |
Throws an run time exception for raising LASS_ENFORCE_ZERO. More... | |
struct | lass::util::impl::ClibRaiser |
Throws a run time exception for raisng LASS_ENFORCE_CLIB. More... | |
struct | lass::util::impl::ClibWarner |
Prints warning to std::cerr for LASS_WARN_CLIB. More... | |
struct | lass::util::impl::ClibRcRaiser |
Throws a run time exception for raisng LASS_ENFORCE_CLIB_RC. More... | |
struct | lass::util::impl::ClibRcWarner |
Throws a run time exception for raisng LASS_ENFORCE_CLIB_RC. More... | |
struct | lass::util::impl::ComRaiser |
Throws an run time exception for raising LASS_ENFORCE_COM. More... | |
struct | lass::util::impl::IndexRaiser |
Throw a range error for LASS_ENFORCE_INDEX. More... | |
class | lass::util::impl::Enforcer< PredicateType, RaiserType, T, ClosureType > |
Helper class of the enforce macro's. More... | |
Namespaces | |
namespace | lass |
Library for Assembled Shared Sources. | |
namespace | lass::util |
general utility, debug facilities, . | |
namespace | lass::util::impl |
Defines | |
#define | LASS_UTIL_IMPL_MAKE_ENFORCER(predicate, raiser, t, closure, locus) ::lass::util::impl::makeEnforcer< predicate, raiser >(t, closure, locus) |
Functions | |
void | lass::util::impl::raiserAddMessage (std::ostream &stream, const std::string &message) |
template<typename PredicateType , typename RaiserType , typename T , typename C > | |
Enforcer< PredicateType, RaiserType, T &, const C & > | lass::util::impl::makeEnforcer (T &t, const C &closure, const char *locus) |
helper function to create enforcers | |
template<typename PredicateType , typename RaiserType , typename T , typename C > | |
Enforcer< PredicateType, RaiserType, const T &, const C & > | lass::util::impl::makeEnforcer (const T &t, const C &closure, const char *locus) |
The contents of this file are subject to the Common Public Attribution License Version 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://lass.sourceforge.net/cpal-license. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
The Original Code is LASS - Library of Assembled Shared Sources.
The Initial Developer of the Original Code is Bram de Greve and Tom De Muer. The Original Developer is the Initial Developer.
All portions of the code written by the Initial Developer are: Copyright (C) 2004-2007 the Initial Developer. All Rights Reserved.
Contributor(s):
Alternatively, the contents of this file may be used under the terms of the GNU General Public License Version 2 or later (the GPL), in which case the provisions of GPL are applicable instead of those above. If you wish to allow use of your version of this file only under the terms of the GPL and not to allow others to use your version of this file under the CPAL, indicate your decision by deleting the provisions above and replace them with the notice and other provisions required by the GPL License. If you do not delete the provisions above, a recipient may use your version of this file under either the CPAL or the GPL.
*** END LICENSE INFORMATION ***
Definition in file enforcer_impl.h.
#define LASS_UTIL_IMPL_MAKE_ENFORCER | ( | predicate, | |||
raiser, | |||||
t, | |||||
closure, | |||||
locus | ) | ::lass::util::impl::makeEnforcer< predicate, raiser >(t, closure, locus) |
Definition at line 541 of file enforcer_impl.h.
Generated on Mon Nov 10 14:22:04 2008 for Library of Assembled Shared Sources by 1.5.7.1 |