-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,668 changed files
with
24,763 additions
and
25,004 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<# | ||
/* | ||
* Copyright (C) 2017 Kazuya Ujihara <[email protected]> | ||
* Copyright (C) 2017-2018 Kazuya Ujihara <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public License | ||
|
@@ -21,6 +21,7 @@ | |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | ||
*/ | ||
#> | ||
|
||
<#@ template debug="false" hostspecific="false" language="C#" #> | ||
<#@ output extension=".tt.cs" #> | ||
<#@ Assembly Name="System.Core.dll" #> | ||
|
@@ -75,23 +76,23 @@ | |
/// <summary> | ||
/// A dictionary for the storage of any kind of properties of this object. | ||
/// </summary> | ||
IDictionary<object, object> properties; | ||
private Dictionary<object, object> properties; | ||
|
||
private void InitProperties() | ||
{ | ||
properties = new Dictionary<object, object>(); | ||
} | ||
|
||
/// <inheritdoc/> | ||
public virtual void SetProperty(object description, object property) | ||
public virtual void SetProperty(object description, object value) | ||
{ | ||
#if DEBUG | ||
if (description != null && !AcceptablePropertyKeyTypes.Contains(description.GetType())) | ||
throw new System.Exception(); | ||
#endif | ||
if (this.properties == null) | ||
InitProperties(); | ||
properties[description] = property; | ||
properties[description] = value; | ||
<#+ if (addNofityChanged) { #> | ||
NotifyChanged(); | ||
<#+ } #> | ||
|
@@ -137,10 +138,10 @@ | |
return defaultValue; | ||
} | ||
|
||
private static readonly IDictionary<object, object> emptyProperties = new System.Collections.ObjectModel.ReadOnlyDictionary<object, object>(new Dictionary<object, object>(0)); | ||
private static readonly IReadOnlyDictionary<object, object> emptyProperties = NCDK.Common.Collections.Dictionaries.Empty<object, object>(); | ||
|
||
/// <inheritdoc/> | ||
public virtual IDictionary<object, object> GetProperties() | ||
public virtual IReadOnlyDictionary<object, object> GetProperties() | ||
{ | ||
if (this.properties == null) | ||
return emptyProperties; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...Field/MMFF/MmffAtomTypeMatcher_Example.cs → ...orceFields/MmffAtomTypeMatcher_Example.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
ExampleCodes/ForceField/MMFF/Mmff_Example.cs → ExampleCodes/ForceFields/Mmff_Example.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.