common_util
|
Define some macro definitions for singleton pattern implementations. For convenience to use, this file defined some macro definitions about singleton pattern implementations. More...
#include <mutex>
Go to the source code of this file.
Macros | |
#define | CUTL_COPY_AND_ASSIGN(classname) |
Macro definition for constructor and copy-assignment operator. | |
#define | CUTL_SINGLETON_PTR(classname) |
Macro definition for get singleton instance pointer implaementation. | |
#define | CUTL_SINGLETON_PTR_DEFAULT_CTOR(classname) |
Macro definition for get singleton instance pointer implementation with default constructor. | |
#define | CUTL_SINGLETON_REF(classname) |
Macro definition for get singleton instance reference implaementation. | |
#define | CUTL_SINGLETON_REF_DEFAULT_CTOR(classname) |
Macro definition for get singleton instance reference implementation with default constructor. | |
Define some macro definitions for singleton pattern implementations. For convenience to use, this file defined some macro definitions about singleton pattern implementations.
Licensed under the Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations.
#define CUTL_COPY_AND_ASSIGN | ( | classname | ) |
Macro definition for constructor and copy-assignment operator.
#define CUTL_SINGLETON_PTR | ( | classname | ) |
Macro definition for get singleton instance pointer implaementation.
#define CUTL_SINGLETON_PTR_DEFAULT_CTOR | ( | classname | ) |
Macro definition for get singleton instance pointer implementation with default constructor.
#define CUTL_SINGLETON_REF | ( | classname | ) |
Macro definition for get singleton instance reference implaementation.
#define CUTL_SINGLETON_REF_DEFAULT_CTOR | ( | classname | ) |
Macro definition for get singleton instance reference implementation with default constructor.