Rosetta
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
basic
init.cc
Go to the documentation of this file.
1
// -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2
// vi: set ts=2 noet:
3
//
4
// (c) Copyright Rosetta Commons Member Institutions.
5
// (c) This file is part of the Rosetta software suite and is made available under license.
6
// (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7
// (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8
// (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9
10
/// @file src/basic/init.cc
11
/// @brief Some statics/funtions helpers for Rosetta init functions.
12
/// @author Sergey Lyskov
13
14
15
namespace
basic {
16
17
/// Global variable to check if core::init was ever called. Used to detect situations when user
18
/// forgot to call init and display helpful message instead of silently crashing.
19
/// We put it here instead of core/init/init.cc so code from all libraries level have access to it
20
static
bool
init_was_called
=
false
;
21
22
23
bool
was_init_called
() {
return
init_was_called
; }
24
25
26
void
init
()
27
{
28
init_was_called
=
true
;
29
}
30
31
}
// namespace basic
basic::was_init_called
bool was_init_called()
return true if core::init was already called and false otherwise
Definition:
init.cc:23
basic::init
void init()
set global 'init_was_called' to true
Definition:
init.cc:26
basic::init_was_called
static bool init_was_called
Definition:
init.cc:20
Generated on Sun Jan 17 2016 15:21:16 for Rosetta by
1.8.7